package com.hnchances.mapper;

import com.hnchances.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *

 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    //通过学生姓名查询id
    @Select("select * from course where courseName=#{courseName}")
    public Integer findByNameId(String courseName);
}
